.api-key-value-table {
  &.rq-content-list-table {
    border: none !important;
  }

  .ant-table-container,
  .ant-table-content,
  .ant-table-body {
    overflow: visible !important;
  }

  tr {
    td.ant-table-cell:nth-last-child(2) {
      border-right: none !important;
    }

    &:hover {
      td.ant-table-cell {
        .key-value-delete-btn.ant-btn.ant-btn-icon-only {
          opacity: 1;
        }
      }

      td.ant-table-cell:nth-last-child(2) {
        border-right: 1px solid #303030 !important;
      }
    }
  }

  td.ant-table-cell {
    padding: 4px 12px !important;

    .key-value-delete-btn.ant-btn.ant-btn-icon-only {
      width: 30px;
      opacity: 0;
    }
  }
  .key-value-input-container.error-state {
    display: flex;
    align-items: center;
    height: 24px;
    padding: 6px 12px;
    gap: 6px;
    flex: 1 0 0;
    line-height: 17px;
    border: 1px solid var(--requestly-color-error);
    border-radius: 4px;
  }
  .key-value-table-input {
    border: 1px solid transparent;
    background: transparent;
    padding: 4px 6px !important;
    height: 24px;
    font-size: var(--requestly-font-size-sm);
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;

    &:hover {
      border: 1px solid transparent;
    }

    &-disabled {
      opacity: 0.5;
    }

    .cm-editor {
      margin-top: -7px;
      overflow-x: auto;
      overflow-y: hidden;
      min-width: 100%;

      .cm-content {
        white-space: nowrap;
      }

      .cm-line {
        white-space: nowrap;
      }

      .cm-scroller {
        overflow-x: auto;
        overflow-y: hidden;
      }
    }
  }

  .key-value-description-view {
    width: 100%;
    height: 24px;
    padding: 2px 2px 0px 6px;
    font-size: var(--requestly-font-size-sm);
    line-height: 1.5;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;

    .placeholder {
      opacity: 0.5;
    }

    &:hover {
      background-color: transparent;
      border-color: transparent;
    }
  }

  .key-value-description-floating-editor {
    position: absolute;
    top: 2px;
    left: 0;
    width: 100%;
    z-index: 10;
  }

  .key-value-description-textarea {
    resize: none;
    border-radius: 2px;
    padding: 4px 6px;
    font-size: var(--requestly-font-size-sm);
    line-height: 1.5;
    max-height: 400px !important;
    overflow-y: auto !important;
  }

  .ant-table-footer {
    background: var(--requestly-color-background);
    position: relative;
    z-index: 1;
  }
}

.key-value-description-tooltip {
  .ant-tooltip-inner {
    word-break: break-word;
    max-width: 200px;
    text-align: center;
  }
}
